Imports System.Data.SqlClient
Public Class WorkPerfomances
    Public Shared Function GetWorkPerformance() As DataTable

        Str = " SELECT PERFORMANCE_ID,EMPLOYEE_NAME=ENGLISH_NAME +' ( '+KHMER_NAME+' )',PERFORMANCE_DATE,PERFORMANCE_YEAR,REASON,EVALUATE,CAPABILITY,MODIFY_BY,ACTIVE FROM  VIEW_WORK_PERFORMANCE  WHERE ACTIVE=1 ORDER BY PERFORMANCE_ID ASC "

        Try


            Dim dataAdapter As SqlDataAdapter
            dataAdapter = New SqlDataAdapter(Str, CType(Dbinterface.Connection, SqlConnection))
            Dim dataTable As DataTable = New DataTable()
            dataAdapter.Fill(dataTable)
            Return dataTable
        Catch ex As Exception
            MessageBox.Show(ex.ToString)
            Return Nothing
        End Try
    End Function

End Class